package com.telecom.weixi.parse;

import org.xml.sax.Parser;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;

public class OweInfo implements Parcelable{
	String accNbr;
	private String custId;
	String servId;
	String totalOwe;
	String totalMOwe;
	
	public OweInfo(){
		
	}
	
	public OweInfo(Parcel source){
		accNbr = source.readString();
		custId = source.readString();
		servId = source.readString();
		totalOwe = source.readString();
		totalMOwe = source.readString();
	}
	
	public static Parcelable.Creator<OweInfo> CREATOR = new Creator<OweInfo>() {
		
		@Override
		public OweInfo[] newArray(int size) {
			return new OweInfo[size];
		}
		
		@Override
		public OweInfo createFromParcel(Parcel source) {
			return new OweInfo(source);
		}
	};
	
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(accNbr);
		dest.writeString(custId);
		dest.writeString(servId);
		dest.writeString(totalOwe);
		dest.writeString(totalMOwe);
	}
	
	public String toString(){
		return accNbr + "-" + servId + "-" + totalOwe + "-" + totalMOwe;
	}
	
	public String getAccNbr() {
		return accNbr;
	}
	public void setAccNbr(String accNbr) {
		this.accNbr = accNbr;
	}
	public String getServId() {
		return servId;
	}
	public void setServId(String servId) {
		this.servId = servId;
	}
	public String getTotalOwe() {
		return totalOwe;
	}
	public void setTotalOwe(String totalOwe) {
		this.totalOwe = totalOwe;
	}
	public String getTotalMOwe() {
		return totalMOwe;
	}
	public void setTotalMOwe(String totalMOwe) {
		this.totalMOwe = totalMOwe;
	}

	public String getCustId() {
		return custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}
	
	
}
